package com.task.sql.schedule.service;/**
 * @ClassName : ExecutorCustomSQLService
 * @Description :
 * @Author : liudonghai
 * @Date: 2024-09-13 13:41
 */

import com.task.sql.schedule.mapper.provider.CustomSQLProvider;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.UpdateProvider;

import java.util.List;
import java.util.Map;

/**
 * @ClassName : ExecutorCustomSQLService
 * @Description :
 * @Author : liudonghai
 * @Date: 2024-09-13 13:41
 */
public interface ExecutorCustomSQLService {
    List<Map<String, Object>> executorSelectSQL(String sql);

    int executorUpdateSQL(String sql);

    int executorDeleteSQL(String sql);

    int executorInsertSQL(String sql);

    /**
     * 带事务执行SQL
     * @param sql 用；号隔开的一组SQL
     * @return
     */
    boolean executorSQLInTransaction(String sql) throws Exception;
}
